








webb.client.model.puzzle. I can get those moved into your new folder if whenever














solutions a bit confusing. Are we storing every possable solution to the puzzle, or just the solution thats in the json data?


solution






{
"username": "string",
"stats": {
"maxSolveTime": 0,
"minSolveTime": 0,
"avgSolveTime": 0,
"puzzlesComplete": 0,
"puzzlesMax": 0,
"title": "Cadet"
}
}
I was thinking of changing user stats to thispuzzlesMax and title. This way its one call to the server for all the stats



/puzzles/{id} / /puzzles/{username}
What if the ID and the username happen to be the same? I know its a edge case, but mabe user statistics about a puzzle should be /user-puzzle/ ?


/puzzles/{id} / /puzzles/{username}
What if the ID and the username happen to be the same? I know its a edge case, but mabe user statistics about a puzzle should be /user-puzzle/ ? puzzle-1-1-10.json, unclosed square bracket, also numStars should be 2
puzzle-1-1-11.json, no solution, missing square brackets
puzzle-1-1-12.json, missing squiggly braces, and no comma after before next key
puzzle-1-1-13.json, missing comma in array
puzzle-1-1-18.json, missing comma in array
puzzle-1-1-24.json, extra comma, incorrect key name for solution
puzzle-1-1-25.json, incorrect key name for solution, incorrect name for gridSize (edited)





















































docker compose up -d

version: "3.7"
services:
mongodb:
container_name: "mongodb"
image: mongo:4.4
hostname: mongodb
restart: always
volumes:
- ./data/mongodb/mongod.conf:/etc/mongod.conf
- ./data/mongodb/initdb.d/:/docker-entrypoint-initdb.d/
- ./data/mongodb/data/db/:/data/db/
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=root
- MONGO_INITDB_DATABASE=development
- MONGO_INITDB_USER=mongodb
- MONGO_INITDB_PWD=mongodb
ports:
- 27017:27017
command: [ "-f", "/etc/mongod.conf" ]set -e
mongo <<EOF
use $MONGO_INITDB_DATABASE
db.createUser({
user: '$MONGO_INITDB_USER',
pwd: '$MONGO_INITDB_PWD',
roles: [{
role: 'readWrite',
db: '$MONGO_INITDB_DATABASE'
}]
})
EOF (edited)

serverFoundationChris is most up to date

serverFoundationChris is most up to date 





























